from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from server.settings import Settings


def mount_staticfiles(app: FastAPI):
    """
    挂载静态文件
    """
    app.mount(f'{Settings.upload_settings.UPLOAD_PREFIX}', StaticFiles(directory=f'{Settings.upload_settings.UPLOAD_PATH}'), name='profile')
